//
//  VideoCollectionCell.m
//  Tang
//
//  Created by lanou on 15/12/3.
//  Copyright © 2015年 352324497@qq.com. All rights reserved.
//

#import "VideoCollectionCell.h"
@interface VideoCollectionCell ()
@property (nonatomic, strong) UIImageView *icon;

@end
@implementation VideoCollectionCell
- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame])
    {
       // NSLog(@"item==%f",self.bounds.size.width);
        
        self.icon = [[UIImageView alloc] initWithFrame:self.bounds];
        [self.contentView addSubview:_icon];
        

    }
    return self;
}

- (void)setModel:(VideoViewDetailModel *)model
{
    self.icon.image = nil;
    [self.icon sd_setImageWithURL:[NSURL URLWithString:model.icon] placeholderImage:[UIImage imageNamed:@"PCe"]];
    
    
}
- (void)layoutSubviews
{
    //NSLog(@"%f",self.bounds.size.height);
    self.icon .frame = self.bounds;
}

@end
